package com.hrbxlh.virtualization.vo;

import com.google.common.base.Objects;

/**
 * @author cheer
 */
public class UserVO {

    /**
     * 用户Id
     */
    private String stuorteaId;

    /**
     * 用户名称
     */
    private String username;

    /**
     * 角色Id
     */
    private Integer roleId;

    public UserVO(String stuorteaId, String username, Integer roleId) {
        this.stuorteaId = stuorteaId;
        this.username = username;
        this.roleId = roleId;
    }

    public String getStuorteaId() {
        return stuorteaId;
    }

    public void setStuorteaId(String stuorteaId) {
        this.stuorteaId = stuorteaId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserVO userVO = (UserVO) o;
        return Objects.equal(stuorteaId, userVO.stuorteaId);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(stuorteaId);
    }
}
